#include "stack.h"





int main()
{
	ST s;
	STInit(&s);
	STPush(&s, 1);
	STPush(&s, 2);
	STPush(&s, 3);
	STPush(&s, 4);

	STPop(&s);

	printf("%d\n", s.a[s.top]);
	printf("%d\n", STTop(&s));
	STPop(&s);
	printf("%d\n", STTop(&s));
	STPop(&s);
	printf("%d\n", STTop(&s));
	STPop(&s);
	

	STDestroy(&s);

	return 0;
}